#pragma once


// CMakeConnectionThread

class CMakeConnectionThread : public CWinThread
{
	DECLARE_DYNCREATE(CMakeConnectionThread)
public:
	virtual BOOL InitInstance();
	virtual int ExitInstance();
protected:
	CMakeConnectionThread();
	virtual ~CMakeConnectionThread();
public:
	DWORD m_dwConnectionNumber;
	CString m_sAddress;
	DWORD m_dwRecvThreadID;
	HANDLE m_hIOCP;
	HANDLE m_hSemaphore;
protected:
	DECLARE_MESSAGE_MAP()
	SOCKET Connect(const CString sIP,WORD wPort,sockaddr_in &remoteAddr);
	void CreateConnections(WPARAM wParam,LPARAM lParam);
};


